//
//  Computer.m
//  OcDay1Homework
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "Computer.h"

@implementation Computer
-(void)setName:(NSString *)name{
    _name = name;
}
-(NSString *)name{
    return _name;
}
-(void)setColor:(NSString *)color{
    _color = color;
}
-(NSString *)color{
    return _color;
}
-(void)setBrand:(NSString *)brand{
    _brand = brand;
}
-(NSString *)brand{
    return _brand;
}
-(void)setPrice:(NSInteger)price{
    _price = price;
}
-(NSInteger)price{
    return _price;
}
-(void)myPrint{
    NSLog(@"%@ %@ %@ %ld",_name,_color,_brand,_price);
}
-(instancetype)initWithName:(NSString *)name withColor:(NSString *)color withBrand:(NSString *)brand withPrice:(NSInteger)price{
    self = [super init];
    if(self){
        _name = name;
        _color = color;
        _brand = brand;
        _price = price;
    }
    return self;
}

@end
